package com.library.service;


import com.library.domain.Author;
import com.library.mapper.AuthorMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AuthorServiceImpl implements AuthorService {

    @Autowired
    AuthorMapper authorMapper;

    @Override
    public List<Author> selectAll() {
        return authorMapper.selectAll();
    }

    @Override
    public Integer add(Author author) {
        return authorMapper.add(author);
    }

    @Override
    public Integer del(int aid) {
        return authorMapper.del(aid);
    }

    @Override
    public Integer change(Author author) {
        return authorMapper.change(author);
    }
}
